package com.alibaba.sdk.annotation;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.lang.annotation.*;

/**
 * 服务注解 (基于事务组合注解)
 * 1. 引入 mybatis依赖 使用 Transactional
 *
 * @ writer Shawn(Shawn_0217@163.com)
 * @ date & time 2021/4/26 20:45
 * @ company alibaba
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Transactional(rollbackFor = {Exception.class})
@Documented
@Service
public @interface BaseService {
    String value() default "";
}
